package com.create.myworld.factory;

import com.create.myworld.objects.derive.substance.Work;
import com.create.myworld.worldthings.WorldThings;

/**
 * @author zcw
 * 工作工厂
 */
public class WorkFactory extends WorldFactory{

    public WorkFactory(){
        name="工作工厂";
        setNext(new ObjectFactory());
    }

    @Override
    protected void produce() {
        Work work1 = new Work("搬砖",10L,2L);
        Work work2 = new Work("敲代码",50L,3L);
        Work work3 = new Work("发传单",10L,3L);
        WorldThings.insertWork(work1,work2,work3);
    }
}
